<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
    <link href="{$Think.config.Date}/css/bootstrap.min.css" rel="stylesheet" media="screen">
    <link href="{$Think.config.Date}/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
       <link rel="stylesheet" href="{$Think.config.Style}/css/ch-ui.admin.css">
    <link rel="stylesheet" href="{$Think.config.Style}/font/css/font-awesome.min.css">
    <script type="text/javascript" src="{$Think.config.Style}/js/jquery.min.js"></script>
    <script type="text/javascript" src="{$Think.config.Style}/js/ch-ui.admin.js"></script>
    <script type="text/javascript" src="{$Think.config.Style}/layer/layer.js"></script>
</head>
<body>
    {include file="public/breadcrumb"/}

	<!--结果集标题与导航组件 开始-->
	<div class="result_wrap">
        <div class="result_title">
            <h3>快捷操作</h3>
        </div>
        <div class="result_content">
            <div class="short_wrap">
                <a href="{:url('back/Commit/add')}"><i class="fa fa-plus"></i>新增提现申请</a>
                
            </div>
        </div>
    </div>
    <!--结果集标题与导航组件 结束-->
   <div class="result_wrap">
        <form action="" method="post">
            <table class="add_tab">
                <tbody>
                    <tr>
                        <th width=150><i class="require">*</i>可提现金额：</th>
                        <td>
                            <input type="text" class="lg" name="score" placeholder="可提现金额" value="{$money}" readonly>
                            
                        </td>
                    </tr>
                     <tr>
                        <th><i class="require">*</i>提现金额：</th>
                        <td>
                            <input type="text" onchange="check(this)" class="lg" name="money" placeholder="100元或者100元的整数倍才能提现">
                            
                        </td>
                    </tr>

                    <tr>
                        <th><i class="require">*</i>剩余金额：</th>
                        <td>
                            <input type="text" id="extra" class="lg" placeholder="剩余金额">
                            
                        </td>
                    </tr>

                     <tr>
                        <th><i class="require">*</i>开户行/支付宝：</th>
                        <td>
                            <input type="text" class="lg" name="bank_name" placeholder="开户行/支付宝">
                            
                        </td>
                    </tr>

                     <tr>
                        <th><i class="require">*</i>账号：</th>
                        <td>
                            <input type="text" class="lg" name="account" placeholder="账号">
                            
                        </td>
                    </tr>

                     <tr>
                        <th><i class="require">*</i>开户人：</th>
                        <td>
                            <input type="text" class="lg" name="account_name" placeholder="开户人">
                            
                        </td>
                    </tr>

                     <tr>
                        <th><i class="require">*</i>提交时间：</th>
                        <td>
                    <div class="input-group date form_date col-md-3" data-date="" data-date-format=""  data-link-format="yyyy-mm-dd">
                <input type="text" name="create_time" value="" placeholder="时间">
                    <span class="input-group-addon">
                         <span class="glyphicon glyphicon-remove"></span>
                    </span>
                    <span class="input-group-addon">
                         <span class="glyphicon glyphicon-calendar"></span>
                    </span>
             </div>
                            
                        </td>
                    </tr>
                   <!--       <tr>
                        <th><i class="require">*</i>审核状态：</th>
                        <td>
                    <label for=""><input type="radio" name="status">已审核</label>
                    <label for=""><input type="radio" name="status">未审核</label>
                        </td>
                    </tr> -->
                    <tr>
                        <th></th>
                        <td>
                            <input type="submit" value="确认提交" style="line-height:15px;">
                            <input type="button" class="back" onclick="history.go(-1)" value="返回" style="line-height:15px;">
                        </td>
                    </tr>
                </tbody>
            </table>
        </form>
    </div>


      <script type="text/javascript" src="{$Think.config.Date}/js/bootstrap.min.js"></script>
<script type="text/javascript" src="{$Think.config.Date}/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
<script type="text/javascript" src="{$Think.config.Date}/js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script type="text/javascript">
    $('.form_date').datetimepicker({
        language: 'zh-CN',
        weekStart: 1,
        todayBtn: 1,
        autoclose: 1,
        todayHighlight: 1,
        startView: 2,
        minView: 2,
        forceParse: 0,
        format:"yyyy-mm-dd h:i:s"

    });


function check(obj){
         var score=parseFloat($("input[name='score']").val());
         var money=$("input[name='money']").val();
        if(money<score&&money>99){
                 if(money%100==0){  
                 var val=score-money;

                    $("#extra").val(val.toFixed(2));
                 }else{
                   $("input[name='money']").val(null);
                   layer.msg('提现金额必须为100元倍数', {icon:2,time:2000}); 
                 }
        }else{
        $("input[name='money']").val(null);
        layer.msg('提现最少100元,不可超过可提现金额！', {icon:2,time:2000}); 
        }
}
</script>

</body>
</html>